import request from '@/utils/request'
import qs from 'qs'
export const gettanpaiquxianapi = params => request.get('ecm-microservice-biz/ecm/carbon/statistics/department/line', { params })
// 列表
export const gettanpailiebiaoapi = params => request.get('ecm-microservice-biz/ecm/carbon/statistics/department/list', { params })
// 分户或工厂碳排统计-列表导出
export const getfenghuorgongapi = params => request.get('ecm-microservice-biz/ecm/carbon/statistics/factory/list', { params })
// 分户或工厂碳排统计-曲线
export const getfenorgongquxianapi = params => request.get('ecm-microservice-biz/ecm/carbon/statistics/factory/line', { params })

//能耗图维护
export const getenergylogoapi = params => request.get('ecm-microservice-biz/ecm/factory/overview/image/image', { params })
// 能耗图新增
export const addenergylogo =  (companyId,data) =>request.post(`ecm-microservice-biz/ecm/factory/overview/image/add?companyId=${companyId}`, data,
  { headers: { 'Content-Type': 'multipart/form-data' } })
// 能好图修改
  export const updateenergylogo=(companyId,data) =>request.post(`ecm-microservice-biz/ecm/factory/overview/image/update?companyId=${companyId}`,data,
    { headers: { 'Content-Type': 'multipart/form-data' } })
// 删除能耗图
export const deleteenergylogo=companyId=>request.post(`ecm-microservice-biz/ecm/factory/overview/image/delete?companyId=${companyId}`)
    